package com.how2java.aspect;
import org.aspectj.lang.ProceedingJoinPoint;
/**
 * Created by WheelChen on 2017/4/3.
 *
 * 日志切面
 */
public class LoggerAspect {

    public Object log(ProceedingJoinPoint joinPoint) throws Throwable{
        System.out.println("start log:" + joinPoint.getSignature().getName());
//       就是将来与某个核心功能编织之后，用于执行核心功能的代码
        Object object = joinPoint.proceed();
        System.out.println("end log:" + joinPoint.getSignature().getName());
        return object;
    }
}
